import { RouteRecordRaw, createRouter, createWebHashHistory } from "vue-router";
import CssMack from "@/pages/cssMack.vue"
import RouterPage from "@/pages/routerPage.vue";
import SwiperPage from "@/pages/swiperPage.vue";
import ChartsIndex from "@/pages/chartsIndex.vue";
import ThrModel from "@/pages/thrModel.vue";
import TimeModel from "@/pages/time.vue";
import MotionModel from "@/pages/motionModel.vue";
import LinkView from "@/pages/linkView.vue";
import LinkOne from "@/pages/linkOne.vue";
import LinkTwo from "@/pages/two.vue";
import AntvG2 from "@/pages/antvG2.vue";
import ToastPage from "@/pages/toastPage.vue";
import DraggablePage from "@/pages/draggable.vue";
import MakeitPage from "@/pages/MakeitPage.vue";
import RainStar from "@/pages/RainStar.vue";
import PdfToWord from "@/pages/pdfToWord.vue";
import Weather from "@/pages/weather.vue";
import Instrument from "@/pages/Instrument.vue";
import CeshiPage from "@/pages/ceshiPage.vue";
import Deepseek from "@/pages/deepseek.vue";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "RouterPage",
    component: RouterPage,
  },
  {
    path: "/CssMack",
    name: "CssMack",
    component: CssMack,
  },
  {
    path: "/AntvG2",
    name: "AntvG2",
    component: AntvG2,
  },
  {
    path: "/LinkView",
    name: "LinkView",
    component: LinkView,
    children: [
      {
        path: "/LinkView/one",
        name: "LinkViewOne",
        component: LinkOne,
      },
      {
        path: "/LinkView/two",
        name: "LinkViewTwo",
        component: LinkTwo,
      },
    ],
  },
  {
    path: "/MotionModel",
    name: "MotionModel",
    component: MotionModel,
  },
  {
    path: "/TimeModel",
    name: "TimeModel",
    component: TimeModel,
  },
  {
    path: "/SwiperPage",
    name: "SwiperPage",
    component: SwiperPage,
  },
  {
    path: "/ChartsIndex",
    name: "ChartsIndex",
    component: ChartsIndex,
  },
  {
    path: "/ThrModel",
    name: "ThrModel",
    component: ThrModel,
  },
  {
    path: "/ToastPage",
    name: "ToastPage",
    component: ToastPage,
  },
  {
    path: "/DraggablePage",
    name: "DraggablePage",
    component: DraggablePage,
  },
  {
    path: "/RainStar",
    name: "RainStar",
    component: RainStar,
  },
  {
    path: "/MakeitPage",
    name: "MakeitPage",
    component: MakeitPage,
  },
  {
    path: "/PdfToWord",
    name: "PdfToWord",
    component: PdfToWord,
  }, {
    path: "/Weather",
    name: "Weather",
    component: Weather,
  },
  {
    path:'/Deepseek',
    name:'Deepseek',
    component: Deepseek
  },
  {
    path: "/Instrument",
    name: "Instrument",
    component: Instrument,
  },
  {
    path: "/:pathMatch(.*)",
    redirect: "/404",
  },
  {
    path: '/CeshiPage',
    name: 'CeshiPage',
    component: CeshiPage
  },
  {
    path: "/404",
    name: "/404",
    component: () => import("@/pages/noFound.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;
